<extend name="Public/base" />
<block name="content">
<div id="content" style="min-width:800px;">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid search-form">
			<form class="m-filter" autocomplete="off">
				<div class="clearfix">
					<a class="pull-left btn btn-success btn-filter-show" id="j-filter-show"><span class="icon-chevron-down"></span></a>
				</div>
				
				<div class="filter-base filter-group">
					<a class="title"><span class="icon-list"></span> 活动选择</a>
					<span class="control-group">
						<select class="form-control" style="width: 150px;" name="activity_id" id="activity_id" >
							<option value=0>选择活动</option>
							<volist name="activity_list" id="vo">
								<option value='{$vo.activity_id}'>{$vo.activity_name|strip_tags}</option>
							</volist>
							{$Think.config.ACTIVITY_TTTM}
						</select>
					</span>
					<span class="control-group">
						<select class="form-control" style="width: 150px;" name="is_order" id="is_order" >
							<option value=0>不含签单</option>
							<option value=1>含签单</option>
						</select>
					</span>
					<span class="control-group">
						<select class="form-control" style="width: 150px;" name="tecket_levle" id="tecket_levle" >
							<option value='-1'>全部票别</option>
							<option value='0'>普通票</option>
							<option value='1'>VIP</option>
						</select>
					</span>
					<span class="control-group">
						<select class="form-control" style="width: 150px;" name="type" id="type" >
							<option value=0>单数</option>
							<option value=1>户数</option>
						</select>
					</span>
				</div>
				
				<div class="filter-box" id="j-filter-box">
					<!-- 基础信息 -->
					<div class="filter-base filter-group">
						<a class="title"><span class="icon-list"></span> 网推部门</a>
						<button type="button" url="{:U('Fang/exportQ')}" class="export btn btn-info btn-small" style="height:28px;">渠道</button>
						<button type="button" url="{:U('Fang/exportZ')}" class="export btn btn-info btn-small" style="height:28px;">自然</button>
					</span>
					</div>
					<!-- /基础信息 -->
				</div>	
				
				<div class="filter-box" id="j-filter-box">
					<!-- 基础信息 -->
					<div class="filter-base filter-group">
						<a class="title"><span class="icon-list"></span> 用户运营中心</a>
						<button type="button" url="{:U('Fang/export_1')}" class="export btn btn-info btn-small" style="height:28px;">成单推广人</button>
						<button type="button" url="{:U('Fang/export_2')}" class="export btn btn-info btn-small" style="height:28px;">推广人成单</button>
						<button type="button" url="{:U('Fang/export_3')}" class="export btn btn-info btn-small" style="height:28px;">VIP绑定人成单</button>
						<button type="button" url="{:U('Fang/export_4')}" class="export btn btn-info btn-small" style="height:28px;">非推广成单用户</button>
					</span>
					</div>
					<!-- /基础信息 -->
					<br>
				</div>	
			</form>
		</div>
		
	</div>
</div>
<script type="text/javascript">
$(function (){
	//导出
	$(".export").click(function(){
		if(!confirm('是否要导出数据？')){
			return false;
		}
		$('.export').attr('disabled', true);
		var url = $(this).attr('url');
		$.post(url, $('form').serialize(), call_back, "json");
		return false;
		function call_back(data){
			if(data.status == 1){
				window.location.href = data.info;
			}else{
				tke_alert(data.info, 'alert-error', 5000);
			}
			$('.export').removeAttr('disabled');
		}
	});
	
});
</script>
</block>